package com.panda.sys.entity.vo;

/**
 * jsp管理使用到的vo对象
 *
 */
public class FileVo {
	/**
	 * 文件名
	 */
	private String fileName;
	/**
	 * 上级文件夹名
	 */
	private String parentName;
	/**
	 * 是否是文件夹
	 */
	private boolean isDir;
	
	/**
	 * 是否是JSP文件
	 */
	private boolean isJsp;
	
	/**
	 * 文件绝对路径
	 */
	private String fileAbsolutePath;
	
	/**
	 * 上级文件夹绝对路径
	 */
	private String parentFileAbsolutePath;

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public boolean getIsDir() {
		return isDir;
	}

	public void setIsDir(boolean isDir) {
		this.isDir = isDir;
	}

	public boolean getIsJsp() {
		
		if(this.fileName == null || "".equals(this.fileName)){
			return false;
		}
		
		return this.fileName.endsWith(".jsp");
	}

	public void setIsJsp(boolean isJsp) {
		this.isJsp = isJsp;
	}

	public String getFileAbsolutePath() {
		return fileAbsolutePath;
	}

	public void setFileAbsolutePath(String fileAbsolutePath) {
		this.fileAbsolutePath = fileAbsolutePath;
	}

	public String getParentFileAbsolutePath() {
		return parentFileAbsolutePath;
	}

	public void setParentFileAbsolutePath(String parentFileAbsolutePath) {
		this.parentFileAbsolutePath = parentFileAbsolutePath;
	}
	
	
}
